<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
</head>

<body>
<div><button onclick="createIframe()">Open Iframe</button></div>
<div id="content" style="width: 500px; height: 300px">
    <iframe src=",https://www.openharmony.cn" width="100%" height="100%"></iframe>
</div>
</body>
</html>